const crypto =require("crypto");
const md5 =crypto.createHash("md5");
md5.update("hello Node.js");
console.log(md5.copy().digest("hex"));

md5.update("111111");
console.log(md5.copy().digest("hex"));

const md5New=crypto.createHash("md5","secret key");
md5New.update("111111");
console.log(md5.digest("hex"));

const sha256=crypto.createHash("sha256");
sha256.update("hello Node.js");
console.log(sha256.digest("hex"))